<%--
  User: LDL
  Date: 2014/8/20
  Time: 15:38
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>我的消息</title>
</head>
<body style="padding-top: 70px;">
<jsp:include page="/topNav"></jsp:include>
<div class="container">

    <div class="row">
        <div class="col-xs-7">
            <h3 class="page-header">全部消息</h3>
            <c:if test="${newses != null}">
                <dl class="dl-horizontal">
                <c:forEach var="news" items="${newses}">
                        <dt><fmt:formatDate
                                value="${news.newsTime}"
                                type="both"
                                pattern="YYYY-MM-dd HH:mm:ss" /></dt>
                        <dd>${news.newsTitle}</dd>
                        <dd role="presentation" class="divider"></dd>
                </c:forEach>
                </dl>
            </c:if>
            <c:if test="${newses == null}">
                <div class="text-center">暂无消息</div>
            </c:if>

        </div>

    </div>
</div>
</body>
</html>
